@import "mixins/mixins";
@import "common/var";

@include b(select-dropdown) {
  @include e(item) {
    font-size: $--select-font-size;
    padding: 0 20px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: getProp("select-option-color");
    height: getProp("select-option-height");
    line-height: getProp("select-option-height");
    box-sizing: border-box;
    cursor: pointer;

    @include when(disabled) {
      color: getProp("select-option-disabled-color");
      cursor: not-allowed;

      &:hover {
        background-color: $--color-white;
      }
    }

    &.hover, &:hover {
      background-color: getProp("select-option-hover-background");
    }

    &.selected {
      color: getProp("select-option-selected-font-color");
      font-weight: bold;
    }
  }
}
